package com.sky.service;


import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;


public interface ShoppingCartService {


    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查询购物车
     * @param currentId
     * @return
     */
    List<ShoppingCart> selectshoppingCart(Long currentId);

    /**
     * 清楚购物车
     */
    void clean();

    void sub(ShoppingCartDTO shoppingCartDTO);
}
